/**
 * Created by Administrator on 2017/5/6.
 */
swan_pc
    .factory('Cause',function($resource,DateUtils){
        return $resource('api/causes/:id',{id:"@id"},{
            "query":{
                method:"GET",
                isArray:true
            },
            "save":{
                method:"POST"
            },
            "update":{
                method:"PUT"
            },
            "delete":{
                method:"DELETE"
            }
        })
    })
    .factory("orgContact",function ($resource) {
        return $resource('api/orgContacts/findByEO/:id',{id:"@id"},{
            "query":{
                method:"GET",
                isArray:true
            }
        })
    })
    .factory("orgEvent",function ($resource) {
        return $resource('api/organizations/:id/events',{id:"@id"},{
            "query":{
                method:"GET",
                isArray:true
            }
        })
    })
    .factory("orgEmployee",function ($resource) {
        return $resource('api/org_contacts/employee/:id',{id:"@id"},{
            "query":{
                method:"GET",
                isArray:true
            }
        })
    });